home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIFrameLoader.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  215 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFrameLoader.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFrameLoader_h__
  6. #define __gen_nsIFrameLoader_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDocShell; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIFrameLoader */
  21. #define NS_IFRAMELOADER_IID_STR "88800e93-c6af-4d69-9ee0-29c1100ff431"
  22.  
  23. #define NS_IFRAMELOADER_IID \
  24.   {0x88800e93, 0xc6af, 0x4d69, \
  25.     { 0x9e, 0xe0, 0x29, 0xc1, 0x10, 0x0f, 0xf4, 0x31 }}
  26.  
  27. class NS_NO_VTABLE nsIFrameLoader : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFRAMELOADER_IID)
  31.  
  32.   /**
  33.    * Get the docshell from the frame loader.
  34.    */
  35.   /* readonly attribute nsIDocShell docShell; */
  36.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) = 0;
  37.  
  38.   /**
  39.    * Start loading the frame. This method figures out what to load
  40.    * from the owner content in the frame loader.
  41.    */
  42.   /* void loadFrame (); */
  43.   NS_IMETHOD LoadFrame(void) = 0;
  44.  
  45.   /**
  46.    * Destroy the frame loader and everything inside it. This will
  47.    * clear the weak owner content reference.
  48.    */
  49.   /* void destroy (); */
  50.   NS_IMETHOD Destroy(void) = 0;
  51.  
  52.   /**
  53.    * Find out whether the loader's frame is at too great a depth in
  54.    * the frame tree.  This can be used to decide what operations may
  55.    * or may not be allowed on the loader's docshell.
  56.    */
  57.   /* readonly attribute boolean depthTooGreat; */
  58.   NS_IMETHOD GetDepthTooGreat(PRBool *aDepthTooGreat) = 0;
  59.  
  60. };
  61.  
  62. /* Use this macro when declaring classes that implement this interface. */
  63. #define NS_DECL_NSIFRAMELOADER \
  64.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell); \
  65.   NS_IMETHOD LoadFrame(void); \
  66.   NS_IMETHOD Destroy(void); \
  67.   NS_IMETHOD GetDepthTooGreat(PRBool *aDepthTooGreat); 
  68.  
  69. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  70. #define NS_FORWARD_NSIFRAMELOADER(_to) \
  71.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) { return _to GetDocShell(aDocShell); } \
  72.   NS_IMETHOD LoadFrame(void) { return _to LoadFrame(); } \
  73.   NS_IMETHOD Destroy(void) { return _to Destroy(); } \
  74.   NS_IMETHOD GetDepthTooGreat(PRBool *aDepthTooGreat) { return _to GetDepthTooGreat(aDepthTooGreat); } 
  75.  
  76. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  77. #define NS_FORWARD_SAFE_NSIFRAMELOADER(_to) \
  78.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocShell(aDocShell); } \
  79.   NS_IMETHOD LoadFrame(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadFrame(); } \
  80.   NS_IMETHOD Destroy(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Destroy(); } \
  81.   NS_IMETHOD GetDepthTooGreat(PRBool *aDepthTooGreat) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDepthTooGreat(aDepthTooGreat); } 
  82.  
  83. #if 0
  84. /* Use the code below as a template for the implementation class for this interface. */
  85.  
  86. /* Header file */
  87. class nsFrameLoader : public nsIFrameLoader
  88. {
  89. public:
  90.   NS_DECL_ISUPPORTS
  91.   NS_DECL_NSIFRAMELOADER
  92.  
  93.   nsFrameLoader();
  94.  
  95. private:
  96.   ~nsFrameLoader();
  97.  
  98. protected:
  99.   /* additional members */
  100. };
  101.  
  102. /* Implementation file */
  103. NS_IMPL_ISUPPORTS1(nsFrameLoader, nsIFrameLoader)
  104.  
  105. nsFrameLoader::nsFrameLoader()
  106. {
  107.   /* member initializers and constructor code */
  108. }
  109.  
  110. nsFrameLoader::~nsFrameLoader()
  111. {
  112.   /* destructor code */
  113. }
  114.  
  115. /* readonly attribute nsIDocShell docShell; */
  116. NS_IMETHODIMP nsFrameLoader::GetDocShell(nsIDocShell * *aDocShell)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* void loadFrame (); */
  122. NS_IMETHODIMP nsFrameLoader::LoadFrame()
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* void destroy (); */
  128. NS_IMETHODIMP nsFrameLoader::Destroy()
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* readonly attribute boolean depthTooGreat; */
  134. NS_IMETHODIMP nsFrameLoader::GetDepthTooGreat(PRBool *aDepthTooGreat)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* End of implementation class template. */
  140. #endif
  141.  
  142.  
  143. /* starting interface:    nsIFrameLoaderOwner */
  144. #define NS_IFRAMELOADEROWNER_IID_STR "feaf9285-05ac-4898-a69f-c3bd350767e4"
  145.  
  146. #define NS_IFRAMELOADEROWNER_IID \
  147.   {0xfeaf9285, 0x05ac, 0x4898, \
  148.     { 0xa6, 0x9f, 0xc3, 0xbd, 0x35, 0x07, 0x67, 0xe4 }}
  149.  
  150. class NS_NO_VTABLE nsIFrameLoaderOwner : public nsISupports {
  151.  public: 
  152.  
  153.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFRAMELOADEROWNER_IID)
  154.  
  155.   /* readonly attribute nsIFrameLoader frameLoader; */
  156.   NS_IMETHOD GetFrameLoader(nsIFrameLoader * *aFrameLoader) = 0;
  157.  
  158. };
  159.  
  160. /* Use this macro when declaring classes that implement this interface. */
  161. #define NS_DECL_NSIFRAMELOADEROWNER \
  162.   NS_IMETHOD GetFrameLoader(nsIFrameLoader * *aFrameLoader); 
  163.  
  164. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  165. #define NS_FORWARD_NSIFRAMELOADEROWNER(_to) \
  166.   NS_IMETHOD GetFrameLoader(nsIFrameLoader * *aFrameLoader) { return _to GetFrameLoader(aFrameLoader); } 
  167.  
  168. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  169. #define NS_FORWARD_SAFE_NSIFRAMELOADEROWNER(_to) \
  170.   NS_IMETHOD GetFrameLoader(nsIFrameLoader * *aFrameLoader) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameLoader(aFrameLoader); } 
  171.  
  172. #if 0
  173. /* Use the code below as a template for the implementation class for this interface. */
  174.  
  175. /* Header file */
  176. class nsFrameLoaderOwner : public nsIFrameLoaderOwner
  177. {
  178. public:
  179.   NS_DECL_ISUPPORTS
  180.   NS_DECL_NSIFRAMELOADEROWNER
  181.  
  182.   nsFrameLoaderOwner();
  183.  
  184. private:
  185.   ~nsFrameLoaderOwner();
  186.  
  187. protected:
  188.   /* additional members */
  189. };
  190.  
  191. /* Implementation file */
  192. NS_IMPL_ISUPPORTS1(nsFrameLoaderOwner, nsIFrameLoaderOwner)
  193.  
  194. nsFrameLoaderOwner::nsFrameLoaderOwner()
  195. {
  196.   /* member initializers and constructor code */
  197. }
  198.  
  199. nsFrameLoaderOwner::~nsFrameLoaderOwner()
  200. {
  201.   /* destructor code */
  202. }
  203.  
  204. /* readonly attribute nsIFrameLoader frameLoader; */
  205. NS_IMETHODIMP nsFrameLoaderOwner::GetFrameLoader(nsIFrameLoader * *aFrameLoader)
  206. {
  207.     return NS_ERROR_NOT_IMPLEMENTED;
  208. }
  209.  
  210. /* End of implementation class template. */
  211. #endif
  212.  
  213.  
  214. #endif /* __gen_nsIFrameLoader_h__ */
  215.